
import './admin.scss'
import './admin.component.scss'

import 'intersection-observer'
// import './webcom'

window.addStyleSheetFromTemplate = function(k) {
  var styleTemplateId = `${k}-style-tpl`;
  var template = document.getElementById(styleTemplateId)
  var style = document.createElement('style');
  style.id = `${k}-style`;
  style.type = 'text/css';
  style.innerHTML = template.innerHTML;
  document.getElementsByTagName('head')[0].appendChild(style);
}

// import jquery from 'jquery'
// window.$ = jquery
// import 'bootstrap/js/dist/tab'
// import 'bootstrap/js/dist/modal'

import './app/loginApp'
import './app/addressApp'
import './app/addressFormApp'

function jsonprint() {
  Vue.component('jsonprint', {
    props: ['value'],
    template: `<div>{{value}}</div>`
  })
}
window.jsonprint = jsonprint
